#!/usr/bin/python
# -*- coding: utf-8 -*-

import threading
import logging

import time



class connection_thread(threading.Thread):


    def __init__(self,**kwargs):
        self.logger = logging.getLogger('thread')
        self.logger.info('init thread')
        self.DEMO_COUNT=100
        threading.Thread.__init__(self)

        
    def run(self):
        while self.DEMO_COUNT==0:
            self.logger.info('tik thread')
            time.sleep(200/1000)
            self.DEMO_COUNT-=1
            
        
